import request from '@/utils/request'

// 获取酒店列表
export const getHouseModelList = (query) => {
  return request({
    url: '/system/hotel/detail/list',
    method: 'get',
    params: query
  })
}
//删除
export const DelHouseModel= (id) => {
  return request({
    url: '/system/hotel/detail/del/'+id,
    method: 'get'
  })
}
//新增
export const AddHouseModel = (query) => {
  return request({
    url: '/system/hotel/detail/add',
    method: 'post',
    data: query
  })
}
//修改
export const UpdateHouseModel = (query) => {
  return request({
    url: '/system/hotel/detail/update',
    method: 'post',
    data: query
  })
}
//房型详情
export const GetDetail = (id) => {
  return request({
    url: '/system/hotel/detail/getDetail/'+id,
    method: 'get'
  })
}
